-- GENERATED SPELL FOR [Jaedenar Guardian] --


function spell0_7113(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_7113', 6328, 1)
end

function spell1_7113(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7113', 8301, 1)
end

function Sorts_7113(pUnit, Event)
local choix_sorts_7113 = math.random(0, 1)
if choix_sorts_7113 == 0 then
pUnit:RegisterEvent('spell0_7113', 1, 1)
end
if choix_sorts_7113 == 1 then
pUnit:RegisterEvent('spell1_7113', 1, 1)
end
end

function mob7113_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7113', math.random(1500, 3000), 1)
end

function mob7113_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7113_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7113_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7113, 1, 'mob7113_Action')
RegisterUnitEvent(7113, 2, 'mob7113_Leave')
RegisterUnitEvent(7113, 3, 'mob7113_Kill')
RegisterUnitEvent(7113, 4, 'mob7113_Die')
